#include <stdio.h>
int main()
{
    //输入一个数字， 判断星期几
    int i = 0;
    scanf("%d", &i);
    switch (i)
    {
        case 1:
        case 2:
        case 3:
        case 4:
        case 5:
            printf("weekday\n");
            break;
        case 6:
        case 7:
            printf("weekend\n");
            break;
        default://也要加上冒号
            printf("输入错误\n");

    }
    return 0;
}